package cn.edu.lingnan.lsqn.service;

import cn.cdahua.basic.model.Pager;
import cn.edu.lingnan.lsqn.model.Article;
import cn.edu.lingnan.lsqn.model.ArticleType;

public interface IArticleService {
	public void add(Article article);

	public void delete(int id);

	public void update(Article article);

	public void updateStatus(int id, ArticleType articleType);

	public Article load(int id);

	public Pager<Article> find();

	public Pager<Article> findByUserId(int uid);

	public Pager<Article> findByStatus(ArticleType status);

	public Pager<Article> findByUserIdAndStatus(int uid,ArticleType status);
}
